#!/bin/bash -e

current_dir=$(pwd)

cd spirecv/dataloader/CameraCppNode
./build_on_jetson.sh

cd ${current_dir}
cd spirecv/algorithm/aruco_det/ArucoDetCppNode
./build.sh

cd ${current_dir}
cd spirecv/algorithm/ellipse_det/EllipseDetCppNode
./build.sh

cd ${current_dir}
cd spirecv/algorithm/autofocus_det/AutoFocusDetCppNode
./build.sh

cd ${current_dir}
cd spirecv/gimbal/GimbalCppNode
./build.sh

cd ${current_dir}
cd spirecv/gimbal/GimbalKeyboardControlCppNode
./build.sh

cd ${current_dir}
cd spirecv/gimbal/GimbalTrackingCppNode
./build.sh

cd ${current_dir}
cd spirecv/saver/SaverCppNode
./build_on_jetson.sh

cd ${current_dir}
cd spirecv/algorithm/common_det/YOLOv11DetJetsonTensorRTLib
./build.sh

cd ${current_dir}
